<script>
	export default {
		onLaunch: function() {
			Array.prototype.sum = function() {
				if (this && this.length != 0) {
					let sum = 0
					this.forEach(item => {
						sum += Number(item)
					})
					if (isNaN(sum)) {
						window.Error("sum support Number Array")
						return null
					} else {
						return sum
					}
				} else {
					window.Error("sum support Number Array")
					return null
				}
			}
			// console.log('App Launch')
		},
		onShow: function() {
			// plus.screen.lockOrientation('landscape-primary');
			// console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		},
		onUnload() {
			// plus.screen.lockOrientation('portrait-primary');
		},

	}
</script>

<style>
	/*每个页面公共css */
</style>